Skip to content

ci(livekit-ffi): verify the release as the last job of a release run - #1685

Open
1egoman wants to merge 13 commits into
mainfrom
ci/release-final-validation
Open

1egoman wants to merge 13 commits into
mainfrom
ci/release-final-validation

Conversation

@1egoman

@1egoman 1egoman commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Stacked on #1682. Merge that first; this PR then retargets to main.

For livekit-ffi/v0.14.0, the builds passed but the ffi-*.zip files never reached the release, and the run was green. The python-sdks release CI was the first to notice. #1682 removes the cause (the draft lookup that raced the knope bot) and checks the 12 ffi-*.zip files before the publish. This PR adds one check at the very end, after all the files are on the release, of the release as a user gets it.

Change

A verify-release job at the end of ffi-builds.yml. It needs get-tag, release, uniffi-dart and uniffi-packages, so it runs after the Dart run attached the build-*.zip files. It runs .github/scripts/verify_ffi_release.py, which fails the run if:

  • the release is still a draft, or the tag does not point at the released commit;
  • a file is missing, empty, or not fully uploaded;
  • a zip does not open, or lacks the files that its consumers read: the library, livekit_ffi.h and LICENSE.md in each ffi-*.zip, libwebrtc.jar for Android, livekit_ffi.py in the Python bindings, the library in each build-*.zip;
  • a build-*.zip does not match its .sha256, which the Dart build hook checks;
  • REQUIRED_ASSETS is not equal to the ffi-*.zip files of the build matrix. That list gates the publish in Migrate the release process from knope to verwalter #1682, and it is kept by hand.

A file on the release that no build makes is a warning. The result also goes to the job summary.

The expected files come from the build matrices of ffi-builds.yml and uniffi-cdylib.yml (with yq, which the Ubuntu runner has), so a new build target needs no second list. The script uses only the Python standard library.

The job has contents: read. A draft is invisible to that token, so the job sees what users see. It runs with !cancelled(), so after a failed job, and for a release that get-tag found complete, the run still ends with a report of the release. It does not run on a push to main or in a dry run.

The release is public when this job runs, so a failure unpublishes nothing. It makes the run red and says what to fix.

Verified

  • The script against the real livekit-ffi/v0.14.0 (repaired) and v0.13.4: both good, 36 files each, checksums and tag commit match.
  • Failures, each with the expected error: a matrix target without a file on the release, a wrong library name, REQUIRED_ASSETS missing one entry and listing an extra one, a wrong tag commit, a release that does not exist, a .sha256 with the wrong hash and file name, a file that is not a zip.
  • actionlint on ffi-builds.yml and release.yml: clean.

Not done

  • Not run on GitHub. Like Migrate the release process from knope to verwalter #1682, the first real test is the first release after the merge. A dispatch of ffi-builds.yml with tag_name: livekit-ffi/v0.14.0 would run it now: get-tag finds that release complete, skips the build, and this job checks it.
  • It does not check the Swift, Android or Dart packages in their registries, only the GitHub release.

🤖 Generated with Claude Code

lukasIO and others added 12 commits November 16, 2026 16:17
verwalter.toml replaces knope.toml. release-pr.yml keeps the release PR
open, release.yml tags, creates the GitHub releases and publishes each
crate, and starts ffi-builds.yml at the livekit-ffi tag. The changeset
check runs `verwalter check`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
node-builds.yml takes a dist_tag input. When it is empty, a pre-release
version in package.json publishes under `next`, else under `latest`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
verwalter creates the livekit-ffi tag before the FFI build. A tag-push
trigger would publish the UniFFI packages before that build is green, so
uniffi-packages.yml and uniffi-dart-publish.yml lose it. ffi-builds.yml
dispatches both at the tag, as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A manual run with `package` no longer starts the Node bindings build
unless livekit-ffi is in the release. The FFI build starts only for a
draft livekit-ffi release, so a release that is already published gets
no second build.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ffi-builds.yml now fails before it publishes the livekit-ffi release if
a built file is not on the release with its size. The upload replaces
existing assets, so a second run for the same tag works.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…verwalter-6ac5e9

# Conflicts:
#	.github/workflows/changeset-check.yml
release.yml calls ffi-builds.yml instead of a dispatch, so a failed build
makes the release run red. ffi-builds.yml calls uniffi-packages.yml and
waits for the Dart package run. A run by hand takes a `ref` input, so it
releases from the released commit and not from the head of main.

ffi-builds.yml allows one run for each tag, leaves a public and complete
release alone, fails on a tag ref without tag_name, and checks the
release against a fixed list of required assets.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Dart run attaches the build-*.zip host libraries to the release.
client-sdk-android learns a new version from Maven and then downloads
those files, so Maven must not have the version before they exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The wait job uses the newest Dart run at the tag: it waits for a run in
progress, accepts one that passed, and starts a new one only if there is
none or the newest failed. It has a timeout, and a single failed request
no longer fails it. uniffi-dart-publish.yml allows one run for each tag.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ffi-builds.yml only fills and publishes a release that verwalter
created. It no longer creates a draft release or a tag: a tag_name
without a release fails. A run with a tag checks out that tag, and the
version check runs before the upload.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A dry run of uniffi-dart-publish.yml uploads and publishes nothing, but
ends as a success. The workflow now names its runs, and the wait job in
ffi-builds.yml reuses only a run named "Publish Dart package <tag>".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Add a verify-release job to ffi-builds.yml that runs after every workflow
that attaches files to the livekit-ffi release (this run's ffi-*.zip and
Python bindings, the Dart run's build-*.zip). It fails the run if the
release is still a draft, the tag is not on the released commit, a file is
missing, empty or not fully uploaded, a zip lacks the files its consumers
read, or a build-*.zip does not match its .sha256.

The expected files come from the build matrices of ffi-builds.yml and
uniffi-cdylib.yml, and REQUIRED_ASSETS is checked against them, so the
list that gates the publish cannot drift from the build targets.
@1egoman
1egoman requested a review from ladvoc as a code owner November 16, 2026 20:48
devin-ai-integration[bot]

This comment was marked as resolved.

The check compared base names, so a library at foo/liblivekit_ffi.so
passed. The Dart build hook reads it at the root of build-*.zip.
@lukasIO

lukasIO commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This is great!

Some of the verification can be done as part of the built in checks already, e.g. there's now a dedicated required_assets field to set in the verwalter.toml that aborts a publish early if anything is missing.

I still think there's stuff in here that isn't covered though that makes sense to keep in a separate step:

  • checking the zip contents
  • hash matching of assets
  • a file is empty or not fully uploaded. verwalter checks the name only.

maybe let's rebase on top of #1705 ?

Base automatically changed from claude/migrate-knope-verwalter-6ac5e9 to main November 24, 2026 17:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants